import typer
from typer import Typer

fastapi = Typer(name="fastapi", help="fastapi相关命令")


@fastapi.command()
def routes():
    from main import app

    routes = app.routes
    for route in routes:
        typer.echo(route)
